integrating power of sine and cosine